package com.hedd.shop.mapper;

import com.hedd.shop.pojo.entity.Order;
import com.hedd.shop.pojo.qo.OrderAddQO;

import java.util.List;

/**
 * @author ludi
 * @date:2020/9/1 9:05
 * @description:订单Mapper
 */
public interface OrderMapper {
    //选择用户的所有订单
    List<Order> selectOrdersByUserId(Integer userId);
    //选择单个订单
    Order selectByOrderId(Integer orderId);
    //插入订单,返回订单id
    Integer addOrder(OrderAddQO orderAddQO);

}
